﻿using System;

namespace Kele.Core.Exceptions
{
    public class KeleException : Exception
    {
        public KeleException(string message, bool logged = true) : base(message)
        {
            Logged = logged;
            Code = 3000;
        }

        public KeleException(string message, int code, bool logged = false) : base(message)
        {
            Logged = logged;
            Code = code;
        }

        public int Code { get; }
        public bool Logged { get; }
    }
}